package com.itheima;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(value = "com.itheima.mapper")
//@EnableScheduling   // 开启定时任务
//@EnableAsync // 开启异步任务调度
public class BootApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext ctx = SpringApplication.run(BootApplication.class, args);

        // 获取所有注册的组件名称
        for (String name : ctx.getBeanDefinitionNames()) {
            System.out.println(name);

        }

    }


}
